package day012.api.calendar;

import java.util.Calendar;

public class Test02 {
    public static void main(String[] args) {
        Calendar cal = Calendar.getInstance();
        cal.set(Calendar.YEAR, 2024);
        cal.set(Calendar.MONTH, 11);
        cal.set(Calendar.DAY_OF_MONTH, 12);

        int week = cal.get(Calendar.DAY_OF_WEEK);
        System.out.println(getWeek(week));
    }

    public static String getWeek(int field) {
        String[] str = {"", "SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"};

        return str[field];
    }
}
